package cn.sumpu.app.guoguojie.constant;

import java.util.HashMap;
import java.util.Map;


public enum BadgeType {
	IDENTITY("1", "有身份的人"), SHARE("2", "分享达人"), POSTEDITOR("3", "贴吧小编"), PICTORIALEDITOR("4", "画报小编"),SOCIAL("5","我爱社交"), 
	HAVEFRIENDS("6", "我有朋友"),PEOPLELOVE("7", "有人喜欢"),ILIKE("8", "好喜欢呀"),SHAREMUCH("9", "分享高手"),PICSHARE("10", "图片分享"),SUPPORTPOST("11", "顶帖高手"),
	SOFA("12", "抢沙发啦"),PICTORIAKEXPERT("13", "画报专家"),LOVEFAMILY("14", "爱心家庭");
	private String value;
	private String label;
	
	private static Map<String,String> cache;
	static {
		cache = new HashMap<String,String>();
		cache.put(IDENTITY.getValue(), IDENTITY.getLabel());
		cache.put(SHARE.getValue(), SHARE.getLabel());
		cache.put(POSTEDITOR.getValue(), POSTEDITOR.getLabel());
		cache.put(PICTORIALEDITOR.getValue(), PICTORIALEDITOR.getLabel());
		cache.put(SOCIAL.getValue(), SOCIAL.getLabel());
		cache.put(HAVEFRIENDS.getValue(), HAVEFRIENDS.getLabel());
		cache.put(PEOPLELOVE.getValue(), PEOPLELOVE.getLabel());
		cache.put(ILIKE.getValue(), ILIKE.getLabel());
		cache.put(SHAREMUCH.getValue(), SHAREMUCH.getLabel());
		cache.put(PICSHARE.getValue(), PICSHARE.getLabel());
		cache.put(SUPPORTPOST.getValue(), SUPPORTPOST.getLabel());
		cache.put(SOFA.getValue(), SOFA.getLabel());
		cache.put(PICTORIAKEXPERT.getValue(), PICTORIAKEXPERT.getLabel());
		cache.put(LOVEFAMILY.getValue(), LOVEFAMILY.getLabel());
	}
	

	private BadgeType(String value, String label) {
		this.value = value;
		this.label = label;
	}

	public String getValue() {
		return value;
	}

	public String getLabel() {
		return label;
	}
	public static String getLabelByValue(String value) {
		return cache.get(value);
	}
	
}
